from net_project_zizhu.zizhuCourseTest import zizhuCourseTest
from page.net_project_tools.net_course_page import NetCoursePage
import user_data
import unittest
import warnings


class zizhuCourse(unittest.TestCase):

    def setUp(self):
        warnings.simplefilter('ignore', ResourceWarning)

    def tearDown(self):
        self.page.logout()
        # self.page.quit()

    def test_net_course(self):
        """课程学习"""
        self.page = zizhuCourseTest()
        self.page.login(*user_data.zizhu_student)
        self.page.enter_project()
        self.page.enter_tools('课程')
        # self.page.xuan_ke()
        self.page.learn_course()


if __name__ == '__main__':
    unittest.main()